import QtQuick 2.0

Rectangle {
    id: root
    color: "#CFCFCF"

    Connections{
        target: CCamera
        onSigRefresh: {

            image.source = ""
            image.source = "image://cameraimage/" + Math.random()
        }
    }

    Text{
        color: "white"
        text: "摄像头未连接"
        anchors.centerIn: parent
        font.pixelSize: 10*dp+Math.min(root.width, root.height) * 0.04
        font.bold: true
    }
    Image{
        id:image
        anchors.fill: parent
//        source: "image://cameraImage"

    }

}
